package com.shengqin.controller.api.dto;

import lombok.Data;

@Data
public class SchoolTestStatisticsDTO {
    // 学校名称
    private String schoolName;
    private Integer gradeId; // 添加年级ID字段用于排序
    
    // 总人数统计
    private Integer maleTotalCount;
    private Integer femaleTotalCount;
    private Integer totalCount;
    
    // 实测人数统计
    private Integer maleTestedCount;
    private Integer femaleTestedCount;
    private Integer testedTotalCount;
    
    // 免测人数统计
    private Integer maleExemptCount;
    private Integer femaleExemptCount;
    private Integer exemptTotalCount;
    private Double exemptRate;
    
    // 优秀人数统计
    private Integer maleExcellentCount;
    private Integer femaleExcellentCount;
    private Integer excellentTotalCount;
    
    // 良好人数统计
    private Integer maleGoodCount;
    private Integer femaleGoodCount;
    private Integer goodTotalCount;
    
    // 及格人数统计
    private Integer malePassCount;
    private Integer femalePassCount;
    private Integer passTotalCount;
    
    // 不及格人数统计
    private Integer maleFailCount;
    private Integer femaleFailCount;
    private Integer failTotalCount;
    
    // 平均分统计
    private Double maleAvgScore;
    private Double femaleAvgScore;
    private Double totalAvgScore;
    
    // 优良率和合格率
    private Double excellentRate;  // 优良率 = (优秀 + 良好) / 总人数
    private Double passRate;       // 合格率 = (优秀 + 良好 + 及格) / 总人数
    
    /**
     * 良好率
     */
    private Double goodRate;
    
    /**
     * 不及格率
     */
    private Double failRate;
    
    /**
     * 合格率
     */
    private Double qualifiedRate;
} 